{% extends "contest/base.html" %}
{% load i18n %}
{% block title %}
    Editing {{ competitor }}
{% endblock %}
{% block content %}
    {% if competitor %}
        {% if competitor_form %}
            <form action="" method="post">
                <table class="ranking">
                    <tr>
                        <th>{% trans "Number" %}:</th>
                        <td>{{competitor.number}} </td>
                    </tr>
                    {{ competitor_form.as_table}}
                    <tr>
                        <th>{% trans "Score" %}:</th>
                        <td>{{competitor.score}} </td>
                    </tr>
                </table>
                <input type="submit" value="Save">
            </form>
        {% endif %}
    {% else %}
        <p>No Competitor found</p>
    {% endif %}
    {% if saved %}
        <div>Saved</div>
    {% endif %}
{% endblock %}
